package scau.jump.securitytrace;

public class RFIDManagerImpl implements Manager{

	public RFIDMonitor monitor;
	public Thread thread ;
	
	public RFIDManagerImpl( RFIDMonitor _monitor){
		this.monitor = _monitor;
	}

	@Override
	public void start() {
		thread = new Thread(monitor);
		monitor.runing();
		thread.start();
	}

	@Override
	public void stop() {
		monitor.stop();
		try {
			if(thread != null){
				thread.join(2000);
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
